fix issue 13701 - support AA.dup for const values