As I understand it the thermal layer does cause some additional refraction of the sound waves.
Here is a link to an interesting powerpoint lecture on the principles of underwater sound. (I do not know what the status of copyright is on this lecture but it has been posted online without any restrictions given)
www.owlnet.rice.edu/~nava201/presentations/Lecture09.ppt