pass the scope key to the template nodes
cleanup compiler nodes
cleanup compiler helpers
wip commit