Update jumplist when going to a mark for a jump.

This fixes the forward button's enabling/disabling based on
the current position in the jumplist.
Properly cast some debug invocations.
Fix for trying to jump behind the first jumplist item.

This seemed to happen when the jumplist was initially
empty, as it currently isn't truly empty. More to come there.
Merge branch 'master' into jumping-jackalopes