`sympify` input to codeprinters

Ensures expression is hashable. Fixes issue #7980.