feat: improve `grind` anchors computation

This PR improves anchor stability (aka stable hash codes) used to
reference terms in a `grind` goal.
2 files changed