Record iOS API methods using varargs, treat named function like assignment to var with name

This is two small fixes:
- We record in the metabase for iOS when a method has varargs with a haVarArgs key and boolean value. This is required for my small method arg count match fix in hyperloop-ios.
- The second fix is to treat a named function equivalent to assigning the function declaration to a var with the same name. otherwise when we generate code we auto generate a var name for it and don't keep a reference to it, so when the JS code make reference to the function by name later, there was no ref.