Fix InvokeParameterisedMethod in handling varargs
Fix some bugs. Adds tests