NH-3596 - DistinctRootEntityResultTransformer breaks Cache

https://nhibernate.jira.com/browse/NH-3596
Fix for QueryOver and unit test
HQL still not working
This is NH-2867