Completed.

The last bug was for when a class is expanded into the cycle index.

Also added more tests.  The number of moves is pretty impressive;
for even distributions, it is easy to move fewer times than the
number of elements.