Added: hasChildOfType to test uniqueness of node type at given scope level. Modif: sort behaviour on selector (when switching to text mode from list).