simplified logic for SparseSlice::Equal()