An elegant way to support NSArray and NSDictionary in AMC