refactored compiler: rm assignParents() stage

Also got rid of function closestScope(node)
Closest scope nodes are stored as properties on every AST node.