fix: grind linarith no longer turns numeral products into atoms (#16616)

This PR fixes `grind`'s `linarith` module treating products with a
numeral, such as `2 * c`, as opaque atoms instead of multiples of `c`.
5 files changed