GROOVY-6662: correct chaching for static method invocation
GROOVY-6665: maxRows in Groovy.sql.Sql goes one too far
GROOVY-6471: another try to bypass the AccessControlException on GAE
Fix compilation error after incorrect backport