GRAILS-11242 - allow @Validateable to be compiled with @GrailsCompileStatic

The contents of the constraints block are being statically dispatched but allowed to exist in a class that marked with @GrailsCompileStatic.
Merge branch 'master' of github.com:grails/grails-core