Clean up serialization of type info