BUG-2825: use array operations to move/zero arrays