Don't add just one level if a node appears to be missing; add parents recursively
Merge pull request #247 from cmc333333/recursive-insert

Account for multiple parents missing when compiling