fix: internalize nested ground patterns when activating ematch theorems

This PR internalize nested ground patterns when activating ematch
theorems in the (WIP) `grind` tactic.
4 files changed