Define proper Role/Permission fields; make role/permission properly hashable