to_sparsemat now handles numpy matrices

further fixes #95, didn't realize this problem extended beyond ``to_csmat``