Add Ctrl+A to select mode and fix undo replacing selection

- Map Ctrl+A in select mode to "Select All" command
- Link selection replacement to the subsequent insert mode so that undo undoes the whole replacement
Merge branch 'fixes-select-undo'