Don't duplicate entries when applying a template.  Part of Story #180