GRAILS-6710 - retain binding error details through validation

The rejected value of a binding error was being lost during validation.
upgrade to groovy 2.1.3
Use @CompileStatic for HibernateUtils and InstanceProxy
remove convertIdentifier from HibernateGormStaticApi and refactor duplicate method in HibernateUtils
Use parameterized generic type in HibernateGormInstanceApi and use @CompileStatic
use CompileStatic for GrailsHibernateTransactionManager
Implement GRAILS-10063, set readonly flags for Hibernate session, criteria and query in readonly transactions.
reduce dirty checking overhead
add CompileStatic and generics type parameter to HibernateGormValidationApi and HibernateGormEnhancer
Use CompileStatic for AbstractDatastoreApi, GormInstanceApi and GormStaticApi
Implement GRAILS-10064 Make it possible to set the OSIV session to read-only by default
Hold MetaClass of Javassist proxy in the MethodHandler
delegate Hibernate proxy's MetaClass methods to superclass's MetaClass