Fix a memory error in IdealGasPhase::cv_vib and cv_tr
Fix a memory error in IdealGasPhase::cv_vib and cv_tr

The array 'c' is only long enough to hold the thermo parameters filled in
by the StatMech class, so it's necessary to make sure the type is correct
first and abort if it's not, rather than calling reportParams first and
corrupting the stack.

git-svn-id: e76dbe14710aecee1ad27675521492cea2578c83@2413 02a645c2-efd0-11dd-984d-ab748d24aa7e

Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn