Handling for null defparam is a bugfix and should be added.
Other ref-type params are something we can't deal with (without adding a custom wrapper with vargv, which I don't want to do here) so we simply disallow the usage of this function to add those kinds of functions. They can be added by modders in the old school manual way to add skill events.