Performance improvements to Serializer.to_simple(), which gets called all the time.