ArrayUtils performance tweak

See #6905. I saw too late you already closed this one...