fix for GRAILS-10207 "Constraints are ignored when a mapping block is defined for a property"