Range selection spanner delete

This PR changes conditions for the removal of spanners along when deleting a range.

Before, if the spanner overlapped with any part of the selection it was removed.
I have added the following conditions:

If the spanner is a slur, a removal of start or end segment also removes the spanner.
If the spanner is not a slur, it is only removed if the start segment is removed.