Changes in terms treeview, fixes #5404

Allow expand and collapse top-level terms.
Remove all and show item and childs when expapanding,
show item an siblings from both sides when collapsing