Fixes order for children of excluded parents

Fixes an issue where children of excluded parents always get appended to end of the tree, not according to their order.
Merge pull request #72 from blueful/master

Fixes order for children of excluded parents