Fix inconsistency in GroundedConstraint and GroundedRule.