Performance improvements to Serializer.to_simple(), which gets called all the time.
Resolved merge with 'serializer-speed-up'.