fix: `grind` ring + linarith internalization

This PR ensures that auxliary terms are not internalized by the ring
and linarith modules.
5 files changed