Class TemplateReferenceComparator