optimizations to TensorSlice.foldl