Consistently use = with spaces in for when the RHS is a range.
Assign NA mask unconditionally as `ind < 0`.
Use normal array assignment instead of arrayset.

The arrayset intrinsic is not intended for public usage. The use
of unsafe_copy! is also, well, unsafe.