Rewrite the HugrMut layer as a trait for Hugrs, so methods can be called on `&mut Hugr` references during rewrites.