updated hash functions for transformations and partial perms

The internal representation of transformations and partial perms was
rearranged to fix bug #461 (in the GAP tracker), this made it necessary
to change the arguments of HashKeyBag in
ORB_HashFunctionForTransformations and
ORB_HashFunctionForPartialPerms