perf: avoid rebuilding simultaneously-updated id set per element on multi-element resize
updateBoundElements() rebuilt a Set of all simultaneouslyUpdated ids on
every call. Multi-element resize/rotate call it once per selected element
with the same array, making each pointer move O(n^2). Cache the set per
array in a WeakMap.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>