Keep only version of sqrDist that take references as arguments.
Restrict operator== to TemplatePoint objects.