Support for UNDO.
First pass at implementing split_window and friends.

Retrieving the cursor position now too, and fix a niggling bug in mod.
Fix special case of length 0 -> 64 in one code path.
Fixed @pull sp and friends.

Now passing all the tests in the Czech test suite!