- Updated 'removePermissionFromUser' test helper to work for entity-permissions that become part of the joint permissions system.
Also updated cloner class with typed properties.