better treatment of var/let/const/type sections in the templating system
bugfix: mark&sweep GC
fixes memory leaks concerning closures