re-add 'selected' class after each redraw

Performance seems to be fine, but we could move this into
svg/* and only run it on entering elements.

fix #1236