Supports the "NaN" serialization of NaN instead of "nan".