GRAILS-11255 - allow criteria queries during static compilation

This change allows criteria queries to exist in a class marked with @GrailsCompileStatic.  The code in the criteria closure is still being dynamically dispatched.  We will build on this to improve performance by statically compiling the criteria query code.
GRAILS-11056 - add some types