Don't lowercase passed-in type for index action
Fix same for singular response
Use new error fu in generated controllers