b/14494025 make all relevant link for subtree headers
Fixing controls tree call to make relevant template.
Refactoring switch statement to if/else chain
More strict/specific cases to cover permissions and unmappable object types for make all relevant clickie
Handle empty list cases

* Previously, if empty list was passed to `with_allowed_as` or
  `with_mapping_instances_as`, script error would result.
* Previously, "Make All Relevant" would appear and be checked, even if
  no mappings could be removed
Handle case where `page_instance` has no context
Fix "Make All Relevant" in Control subtrees

* It seems the `original_list` reference must be within `#child_options`
* Also fix "People" subtrees, though they're not currently used anywhere
Merge pull request #1369 from reciprocity/feature/make-all-relevant

"Make all relevant" checkbox for subtrees