Preserve the order of bindings in the selections document
Test <requires os> and <requires use>
Strip out unused dependencies from <command> elements
Remove 'main' and 'self-test' attributes when generating selections