Restrict operator== to TemplatePoint objects.