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. 
As I understand there is no reason for special class. Is seems like problem with scopes in DictResolver. If avoid of id() usage and resolve dict items by base key only - all works fine.