add a unique ID for (almost) duplicate template names

for template names that are the same but differ in case