AppleScript refer objects and NSArray / NSDictionary

Why am I not able to able ITunes reference objects to NSMutableArray
Or use in NSDictionary.

Errors with can’t create object of type.

When I use lists and records I can get everything to work fine.

It also errors when I try to log the record

It’s the way references are implemented in AppleScript. The same limitation is there if you want to use a reference from one app in code aimed at another app.