fix Issue 13515 - "Range violation" when writing to array of AAs from static this
Merge pull request #4008 from 9rnsr/fix13515

[REG2.064] Issue 13515 - "Range violation" when writing to array of AAs from static this