Add array support to subjects_with_permission and objects_with_permission