Make it possible to pack scipy sparse matrices in tuples