fix #23366

hopefully the last for this issue...
partial fix #23622

only for the missing units mentioned in the issue
Merge pull request #573 from Jojo-Schmitz/orig.texts

fix #23366 plus partial fix for #23622
fix 23727: Stem direction wrong for beamed chords
fix beam regression in last commit
fix beam test