Add pickle support for transformations and partial permutations

Decided to just make a new pull request for this, on top of master.

Just adds IO support for Partial Permutations and Transformations.