NH-3596 - DistinctRootEntityResultTransformer breaks Cache

https://nhibernate.jira.com/browse/NH-3596
Fix for QueryOver and unit test
HQL still not working
I know that it is different from the saved query, but it was like this in the unit test (QueryOver version).