Fix for GRAILS-9999: makes MimeTypesTransformer compatible with @CompileStatic
so that Controllers can be staticly compiled