Fix varargs method call with array

Now, it works with Java Objects methods,
DynamicObjects, and Adapters.