Fix ICE when using delegates as parameters.