Refresh cached mutation_region_id metadata after pattern matcher rewrites so later matches cannot cross newly inserted mutable ops. Adds regression coverage for replacements that insert copy_.
Fixes #132932
Generated by my agent
Pull Request resolved: #184448
Approved by: https://github.com/oulgen