Finally got the 'set/retrieve character value' thing working

Also, a bunch of bad debug stuff and bad code that needs
restructuring.