A tagged Link and its annotation otherwise expose duplicate link semantics.
For a Link with one annotation and text-only content, let the annotation own the text spans. Keep the structure-tree fallback until that succeeds.
Serialized OBJR children used raw object references that do not match annotation-layer element IDs. Type correction also required a structure element to have exactly one child, so links with marked content were missed.
Match OBJR children to annotations by object reference. Keep structured annotations owned by the structure tree, and use text-layer positioning only for annotations absent from it.
Preserve `RowSpan`, `ColSpan`, `Headers`, `Scope`, `Short` and `Summary`
when serializing the structure tree, and map them to the corresponding
ARIA attributes in the viewer.
The attributes are now collected from both the `A` and the `C` entries,
which may be arrays interleaving dictionaries and revision numbers: this
also fixes the bounding box and the MS Office MathML lookups, which only
handled a single direct dictionary.
Fixes#18090.