Support properly serializing primitive types wrapped in __endian_conversion.