fix: `grind linarith` counterexample (#10960)

This PR fixes a bug in the `grind linarith` model/counterexample
construction.

Closes #10500
7 files changed