fixed bug in term_win.c

sometimes libvterm will have bogus values for the cursor
just after a resize, so we need to check to make sure it is
within the bounds of the current window size before moving it.

also fixed some debug output to consistently print dimensions
with rows first and columns second.