Part of T78671
The original code captures groups of loops to "merge".
This restores the initial state of some UVs.
The solution proposed in this patch is to skip this "merge" process for
all transform modes other than Edge/Vert Slide (where this code was
originally implemented).
This simplifies and greatly improves the code's performance.
