Work around a bug in scipy.sparse.hstack