Refactor node parents for the ones who start a scope.

This way we can traverse the tree both ways, and will get more
possibilities to query stuff and get variable shadowings, etc.