Supports "NaN" serialization over "nan".

For @EvanSimpson, with love