Changing a clef over a section break is handled incorrectly
Add two measures. Change the barline of the first measure to an end repeat. Add a section break. To the next bar, change the clef. A courtesy clef is invisibly added on the measure with the section break but the clef in the next measure is not changed.