Whitespace nits
Add test of a tamed function in a template.

It fails at the moment.
Fix compiling of closures in templates.
Makefile corrections.