Account for multiple parents missing when compiling

At points (particularly in interpretations), we want to insert a node that's missing a parent. The compiler used to add a single empty parent in this case.

This patch expands that logic to be recursively add parents, which reduces the number of manual tweaks to interpretations needed.