NH-2486, NH-2645, NH-2380 - Ability to perform `Distinct(...)` after projection.
LINQ: Prevent using server-side Distinct() together with projection methods executed locally, since the distinct would operate on the values before the local method is called.
Merge branch 'NH-2380'