fix to csmat bug not handling numpy arrays

fixes #95