Implement conversion from Perm to tuple
Implement conversion from Perm to tuple

There is some slight code duplication with other query functions for
Perms.  But it might be harder to put them together.

tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge