fix: improve E-matching pattern selection heuristics

This PR improves the E-matching pattern selection heuristics in the
`grind` tactic. They now take into account type predicates and transformers.
2 files changed