fix #21730 + add compat test for accidentals
fix grace note layout in beam context