Fix a discovery generation bug where fields that are types with illegal class names cause broken generated code.