Adding distinct() to Realm

@emanuelez @cmelchior @bmunkholm