[ctml_writer] Fix a Python 2.6 compatibility issue

Python 2.6 needs some extra help when trying to execute code
containing Windows (CRLF) line endings.

git-svn-id: https://cantera.googlecode.com/svn/cantera/trunk@2481 02a645c2-efd0-11dd-984d-ab748d24aa7e
[Thermo] Fix errors in setState_SPorSV

This corrects the behavior in cases where the correct temperature is below the
nominal minimum temperature for the phase.

Add test cases for this and analogous cases for the maximum temperature and
setState_HPorUV.

Fixes Issue 151.

git-svn-id: https://cantera.googlecode.com/svn/cantera/trunk@2482 02a645c2-efd0-11dd-984d-ab748d24aa7e