Fixes Issue 1673 - Implement the isTemplate trait.
Merge pull request #3380 from AndrejMitrovic/isTemplate

Issue 1673 - Implement the isTemplate trait.
Slim up test cases for header generation