NH-3596 - DistinctRootEntityResultTransformer breaks Cache

https://nhibernate.jira.com/browse/NH-3596
Fix for QueryOver and unit test
HQL still not working
It's the same problem