fix #6369: Pasting repeat bar over barline corrupts measures. Also fix navigation through repeat measure, and range selection end on repeat measure