fix uniq to give unique items from list or iterator