Remove std::isnan and std::isinf usage from utFastAtofTest

These functions were added in C++11, and should not be used nakedly
in the current code base. Replace them with suitable C++03 constructs.