add missing exporter
fix error in as<MatrixXd>(mat)
only applicable to dgCMatrix, not CsparseMatrix
add exporter for "dgRMatrix"