BS-7872 Improvement on refactoring while deleting data, parameter or widget

- Fix missing right operand in outlines
- Fix algo while looking for referencies when multiple dependencies with the same type + unit tests
- If deleted element is not referenced, the tables with treeview is not shown