[REG2.051] Issue 12420 - [AA] Can't set associative array with array as key value using key type

https://d.puremagic.com/issues/show_bug.cgi?id=12420

And add test case for [issue 2954](https://d.puremagic.com/issues/show_bug.cgi?id=2954).