Give TemplateElements a narrower range

Issue #169