Remove duplicates from lists by default, added keep_duplicates parameters