Fixed toCycleString, which broke when PERMUTATION_INDEX!=0