I have a constructor:
in groovy, i am calling it with a String, a Long, and an Integer.
ParameterTypes.fitToVarArgs correctly determines that the array is a Double.
however, when MetaClassHelper.makeArray is called, it does:
which overrides the Double.class that is secondary, with Integer.class from the incoming value.
The constructor invocation then fails since the correct type was not passed.