Draft: read in changes to parameters in set_parameter
The parameters definition is cached and thus edits to parameters made by set_parameter function were not picked up. These lines check with the stored parameter values and update these of needed.
The parameters definition is cached and thus edits to parameters made by set_parameter function were not picked up. These lines check with the stored parameter values and update these of needed.