[bknr-ticket] #28: Improve templater namespace handling