fix off-by-one error in array_move() assertions