fix: congruence closure used in the `grind` tactic

This PR fixes a bug in the congruence closure data structure used in
the `grind` tactic. The new test includes an example that previously caused a
panic. A similar panic was also occurring in the test `grind_nested_proofs.lean`.
7 files changed