* improved Toolbox.Replace function to be recursive (can now handle any model complexity)