Fixes Issue 1673 - Implement the isTemplate trait.