SpannerMap key fix

I found this bug in my selection-window branch, where I shortened the loop by going from, map.begin() to map.upper_bound(endTick).

When undoInsertTime is called, it loops through all spanners that are going to be affected, and corrects their start and end ticks. The keys in the map were not updated.

Undo does not work in this case yet.