Add distinct filter to AbstractMongoSet
rename Reference to Ref