ENH: add 'strict' argument to template module, fail on use of undefined var