Fix varargs method invocation with array

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