feat: constant functions in `grind`

This PR extends the propagation rule implemented in #9699 to constant functions.
3 files changed