fix for Issue #626 - Distinct and generics not working together
Merge pull request #628 from mflamer/master

fix for Issue #626 - Distinct and generics not working together