Fix a couple crashes when polishing scores.

- We need to use the old end bar location when iterating through
positions in the bar, in case the end bar was moved to the left.
- We can't compute note durations on the fly when updating their
positions, since irregular groups are also being moved around at the
same time.
Fix #26 - Format Guitar Pro files after importing them.