I'm not going to do anything with real_good_stuff.diff.bz2, but perhaps someone clued up would have a look at it and shove it in?
Thanks for doing this!
The real_good_stuff is a step forward. I have just reread your split out patch, and everything looks good. It consists of adding some asserts, adding code documentation, const-ifying more of the interfaces, fixing a few crash bugs, add the bug-hunting assert in coordcache, removing unused functions and methods.
IMO, you do not have to wait for others to verify this, since I judge it to be in the green zone when it's split up like that.
Regards, Asger