Write deep merge for params hash