Corrected PermutationAction.signum, added test.