Bug fixes for 2.0

Fix 2 bugs:
- ConcurrentModificationException was thrown sometime due to concurrency between cursor drawing and back buffer update
- cursor drawing inside selection did not have the correct style (making it invisible when selectionStyle == inverted(normalStyle))