fix Issue 12316 - AA.get broken for Object VAL types

More better fix for the issue 7757.
[Refactoring] around toDelegate call