Bugfix for studyEditor to distinguish templates with the same name for different entities.