resolves #1035 allow Treeprocessor to return replacement tree
Merge pull request #1036 from mojavelinux/issue-1035

resolves #1035 allow Treeprocessor to return replacement tree