Add support for Distinct, fixes #22