[Thermo] Fix possible invalid read in installShomateThermoFromXML

installShomateThermoFromXML now checks that 7 coefficients are supplied in the
floatArray and throws if that is not the case.

Partial cherry-pick of r2778.

git-svn-id: https://cantera.googlecode.com/svn/cantera/branches/2.1@2846 02a645c2-efd0-11dd-984d-ab748d24aa7e
[Python] Fix docstring of Sim1D.restore

Resolves Issue 210.

Cherry-pick of trunk commit r2790.

git-svn-id: https://cantera.googlecode.com/svn/cantera/branches/2.1@2847 02a645c2-efd0-11dd-984d-ab748d24aa7e
[ctml_writer] Fix handling of units in some fields

When using Python 3, using -1 as the dummy value for density and site_density
causes probems, because the (ordered) comparison between a density specified
with units (as a tuple) and 0 is not allowed. Instead, use None as the
placeholder value.

Cherry-pick of trunk commit r2800.

git-svn-id: https://cantera.googlecode.com/svn/cantera/branches/2.1@2848 02a645c2-efd0-11dd-984d-ab748d24aa7e
[Test] Fix platform-dependent output in test-IAPWSPres

Cherry-pick of trunk commit r2822.

git-svn-id: https://cantera.googlecode.com/svn/cantera/branches/2.1@2849 02a645c2-efd0-11dd-984d-ab748d24aa7e
[Numerics] Fix invalid dereference in SquareMatrix::factor

The work array hasn't always been allocated, so taking its address isn't
necessarily valid. Also, dlange doesn't use the work array in the '1' norm
case anyway.

Cherry-pick of trunk commit 2830.

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