fix: check exponent in `grind lia` and `grind ring`

This PR ensures that `checkExp` is used in `grind lia` (formerly known as
`grind cutsat`) and `grind ring` to prevent stack overflows.

closes #11130
7 files changed