Range selection ending fix

Removed time signature from selection if not followed by chordrest in selection.
Fixed range box to not include bar lines and time signatures if not followed by a chordrest.
hmm, guess you're right. How about

Segment* ts = this->Segment();
Segment* s = ts->next1MM(types);
while (s) {