iterate_parameters() can now take a different number of steps for each parameter