Replace some custom unsafe code with `array::map`
Replace some custom unsafe code with `array::map`

`<[T; N]>::map` was recently stabilized. It's not on any stable or beta
yet, but we're only using it here with `cfg(feature = "nightly")`.

rust-lang/hashbrown,rust-lang/hashbrown