Fix ConstructSparseFromList.infer_shape

Should address gh-1293.