Made GroundTerms comparable.