Add support for partial perms and transformation pickling

As in title, this just adds pickling support for partial perms and transformations (which I happen to want).