2 small fixes: in NdArrayResolver and changeAttrExpression

Maybe it is also a good idea to add in DefaultResolver some logic for additional dictionary values evaluation in case of class has '\_\_getitem\_\_' method. 
Yes, you right. I am not proposed to change DictResolver and just mention where problem is.

After debugging I found strange things:
let's say NdArrayResolver.resolve() return {'1': array([4, 5, 6]), '0': array([1, 2, 3])} items. After that we create dictionary object and call DictResolver.getDictionary() and have e.g.
id(1) = 87484560
id(0) = 87484440
But when one try to expand sub-array '0' (87484440) array([1, 2, 3]) and call DictResolver.resolve(dict) on the same dictionary {'1': array([4, 5, 6]), '0': array([1, 2, 3])} ids reverse the order (!):
id(1) = 87484440
id(0) = 87484560
I investigate now why