GRAILS-10397 - improve how the data binder identifies domain classes