Added a special check for NSArray (in addition to NSString) in order to call some JS functions on NSArray.  We also look to see if length() is begin called on an NSArray, and then swap that out for count at runtime.