Use absolute namespace references on templates

I'm not sure this is as essential as it is in the python modules proper but this gives us consistency.