Preparation for the issue 13701 - fix AA.dup for const elements
Merge pull request #1031 from 9rnsr/const_aa_dup

Preparation for the issue 13701 - fix AA.dup for const elements