feat: pattern normalization in the `grind` tactic

This PR ensures patterns provided by users are normalized. See new
test to understand why this is needed.
6 files changed