more layout fixes for short textlines including pedal

Also fixes layout for lines that start or end on a full measure rest