Unify register saving/restoring to a Vector
Unify register saving/restoring to a Vector

The previous "optimized" history register logic was unfortunately
not restoring correctly as the order of entries in the history
register could have been mutated.

danr/kakoune,lenormf/kakoune,casimir/kakoune,occivink/kakoune,mawww/kakoune,occivink/kakoune,alexherbo2/kakoune,danr/kakoune,mawww/kakoune,danr/kakoune,Somasis/kakoune,lenormf/kakoune,alexherbo2/kakoune,alexherbo2/kakoune,lenormf/kakoune,jkonecny12/kakoune,jkonecny12/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,casimir/kakoune,casimir/kakoune,Somasis/kakoune,casimir/kakoune,mawww/kakoune,lenormf/kakoune,Somasis/kakoune,danr/kakoune,jkonecny12/kakoune,mawww/kakoune,occivink/kakoune,Somasis/kakoune,occivink/kakoune