Search an object hierarchy for an object by name. This is useful for searching for a specific object in a saved scenario `.json` file.
find_hierarchy_object(x, name, include_children = FALSE, partial_match = FALSE)
The object hierarchy to search. This is typically a `list` loaded from a scenario `.json` file.
The object name to search for.
Should children be included in the result?
Should the name match exactly (FALSE, default) or can it be a part of the actual name?
The matching object, or NULL if none found.