Created the generator function 'dependency_generator()'.
This generator is for looping over the list of target parameters to update when a parameter is set.
It replaces all the self._update_object() calls and simplifies the code. It will also be used for
updating the Monte Carlo simulation data structures.