git: use COPY_ARRAY and MOVE_ARRAY in handle_alias()