fixed SparseMat Iterator compilation error (bug #2921)
Merge pull request #743 from jet47:fix-sparsemat-iterator