Remove subsets from input trees

When multiple DOM structures are specified via an array, it is
possible some structures contain others as subtrees. Since selecting
elements across these trees may lead to duplicate results, subsets ought
to be removed prior to selection.