Added a hashcode to InstancePermissions