Fix for GRAILS-11647 It's not possible to override collection properties with custom Hibernate User types (2.4.x branch)

The same as #531 but for branch 2.4.x