put the local template in a namespace, since there seems to be no other way to make a class local to a file