func (reg *TypeRegistry) GetNamedType(name string) *gen.ObjectDataType {
	return reg.NamedTypes[toGoTypeName(name)]
}
func (reg *TypeRegistry) GetNamedType(name string) *gen.ObjectDataType {
	return reg.NamedTypes[toGoTypeName(name)]
}
// GetNamedType retrieves a type given its name.