Changed .list to .domain on permutation group elements since the latter is deprecated