Added a Scala preference for Mark Occurrences

Added a toolbar button for quick access.
Fixes #1001466
Fixes problems in preference state sharing

Using only Boolean, and correctly starting the toggle handler listener.
Merge pull request #299 from skyluc/issue/mark-occurrence-preference-1001466

Added a Scala preference for Mark Occurrences