Added support for JSDynamic and 'varargs' methods.