GRAILS-10837 - improve enum binding