fixed list-permutations problem that saw returned lists getting screwed up without copy-list (for Sebastian Wendt
