OctaveCodePrinter: SparseMatrix support
CodePrinter: workaround issue #8283

Can revert this after the issue is fixed, but we need this to
allow SparseMatrix Octave printing to work properly.