Added support for disabling template defs. refs #438