Support writing SparseMatrixCSC to MAT

Closes #24
Add missing secret hint for logical encoding