S&R: mark handling
A few adjustments to S&R, some of which restore some behavior as it was previously;
- Esc key clears checked state, and an unchecked is no longer marked. That prevents marks from popping up again after they have been dismissed (by Esc)
- clear and/or update marks when a tab is closed or switched