Magnetic Ion Substitution and Peak Effect in YBCO: the Strange Case of Y1–xGdxBa2Cu3O7–δ