Redo template mechanics to create specific template subclasses (allowing class attributes to be shared efficiently)