std: slice.get(i) shouldn't do bounds check twice

The `get` function already checks that `i` is within bounds, so skip the
second one and use `unsafe_ref`.