Ungrouping in a grid main brings the group's shapes into each copy as
well. A copy with its own cells gave them its free cells in the order
the main's grid flows them, while sync gives such a copy's new children
its free cells in the main's layer order, so the result depended on the
path. The ungroup now uses the main's layer order too.
Benchmark (lower quantile, ms):
| world | baseline | now | mean | ratio |
|------------------------------------+----------+---------+---------+-------|
| deepest-edit-through-three-levels | 35.215 | 22.979 | 26.978 | 0.65 |
| edit-through-a-chain-of-dependents | 68.931 | 43.948 | 50.432 | 0.64 |
| library-update-into-copies | 83.083 | 51.875 | 58.852 | 0.62 |
| main-edit-among-many-shapes | 4.837 | 2.911 | 3.140 | 0.60 |
| main-edit-into-10-copies | 1.79 | 1.160 | 1.245 | 0.65 |
| main-edit-into-100-copies | 15.415 | 11.340 | 11.833 | 0.74 |
| main-edit-into-1000-copies | 153.086 | 110.971 | 121.066 | 0.72 |
| variant-switch-into-copies | 32.052 | 24.935 | 29.875 | 0.78 |
AI-assisted-by: claude-opus-5-5