Coerce DynArrays to Java arrays in method invocations (DYNJS-118)

This builds on top of the new array coercion in rephract to coerce
DynArrays to Java arrays as long as all elements of the DynArray can
be coerced to the required Java type.