Generate all unique permutations of a list that may contain duplicate elements by skipping repeated paths.