Fix insert for arrays.