Adding functionality to the ParamBag class

Added a replace and recursive replace function to the parambag class, as
this class is meant to hold and manipulate data.