Fix for allocation (generated assert) of space for integer parameters.

Moved the “set_param_size” call to a common spot, since we were doing it everywhere anyway.