Fix for infinite recursion in compiled templates, caused by shim application plebbery in template logic.