Component: fixed getTopScopeParent; util.dom: fixed unwrapElement; TextSelection: added containingElement and containingComponent functions