more informative msg in compare-to-c.t- allow perl side to return nan. handle windows-style NaN/inf's