[NH-3547] New feature: DistinctEntitiesResultTransformer

This integrates the code I posted to JIRA into the project.

https://nhibernate.jira.com/browse/NH-3547