Added idistinct() and key argument for i?distinct()