Allow serialization of NaNs