GRAILS-11672 - test invoking the cache(boolean) method from criteria query
Remove invalid tests
Remove CriteriaTypeCheckingExtension

The extension was allowing all criteria query methods to be dynamically dispatched.  grails-data-mapping has been improved by using @DelegatesTo so the code inside of criteria queries can now be statically dispatched.
Use g-d-m 3.1.3.BUILD-SNAPSHOT
Merge branch '2.4.x'

Conflicts:
	grails-core/src/main/groovy/grails/compiler/GrailsCompileStatic.groovy
	grails-core/src/main/groovy/grails/compiler/GrailsTypeChecked.groovy
	grails-core/src/main/groovy/org/grails/compiler/CriteriaTypeCheckingExtension.groovy