Revert "fix for GRAILS-9813 "Domain.getAll( ['id1','id2'] ) not working : returns null""

This reverts commit bd6f6cb9939de3a058fc152eb783ec63b4c4e871.
Merge branch '2.1.x' into 2.2.x
Merge branch '2.2.x'