Adapt DataFormats/Math to work with the new SMatrix.
Merge pull request #3488 from ktf/fix-dataformats-math-new-smatrix

Adapt DataFormats/Math to work with the new SMatrix.