I see now, although your changes will still not be a 1:1 replacement; the previous version was building the array internally, if something passes null for "params" line 584 and 588 will break still in the same cases where type hinting would break.