Grails 9328

- fix for GRAILS-9328 ( the adapter for Query.Equals didn't handle the case of value being a DetachedCriteria)
- refactored HibernateCriterionAdapter ( grouped similar CriterionAdaptors to make it more readable )
- added test case for 9328
- added test case for property comparisons