Apparently mistaken failure to use Function.genericParameterTypes.
Diagnosis for mysterious exception.
java.lang.ArrayIndexOutOfBoundsException: 0 
	at org.kohsuke.stapler.MetaClass$JavaScriptProxyMethodDispatcher.doDispatch(MetaClass.java:463)