added fix to consider 2/2 + repeat + final longa as a case for middle-of-measure repeat
duplicate frist measure if there is only one first measure (hack, but solves incipit problem)