Make common.tmpl compilable, with all the required functions defined.
Ignore build products for templates.
Fix a number of issues in the util code.
Make elemwise template compilable.
Now it compiles the test program!  Now to make it work.