A command noted apart (EncoderCore::note_reaching and note_draw) compared its
uses with the last command's to find the fresh ones (NotedApart::fresh and
fresh_draw), recorded those, then copied all of its uses over the kept ones
(note and note_draw). A draw rebound with one buffer offset moved, the shape
the consumer's draws.10k takes at every draw, so cloned every use twice.
NotedApart::note_fresh and note_draw_fresh now do both in one step: they find
the fresh uses and their positions, hand the fresh ones to the caller's
record, and change the kept uses at those positions alone (those past the
kept ones are added in order; with nothing found, every use is copied as
before). What the part records is unchanged: the same fresh uses, in the same
order. The fresh, fresh_draw, note and note_draw methods go; their tests
observe the fresh uses through the record they hand on.
Verified: the new test a_command_noted_after_another_keeps_its_uses_changed_in_place
notes seven commands that change uses at some positions, grow and shrink,
and checks the fresh uses against a positional diff and that each command,
and no other, is held after it is noted. Builds with debug assertions check
that the kept uses equal the command's after each in-place change.
(cherry picked from commit 3dd6b4aafb1e5a837066878d017803fc3c5fdc4c)