WIP

* Minor optimizations to ps_check_child_structure_rh
* Minor optimizations to ps_check_where_used_rh