fix for GRAILS-11303 "GSTring cannot be cast to String in inList criteria"