Fix doubles serialization using the InvariantInfo