Improve the importing of barlines from Guitar Pro files.

- Fixed a bug where a repeat end followed by a regular measure would
create a separate single barline immediately after the repeat end.
- If a repeat end occurs at the end of the score, it replaces the end
bar line.
- The score now ends with a double bar fine (unless the last bar has a
repeat end)