Sparse matrix class templates, expm() and eigen2() fixes.