fix to csmat bug not handling numpy arrays
Merge pull request #96 from wasade/to_csmat_bug

fix to csmat bug not handling numpy arrays