WIP

* Added ps_check_where_used_rh
* Optimizations to ps_check_child_structure_rh