feat: improve linarith `markVars`

This PR improves the linarith `markVars`, and ensures it does not
produce spurious issue messages.
5 files changed