Is TypeRegistry actually a (de)serializer which allows for custom type handling by allowing the user to register classes?