Removes duplicates from type lists.