Backup commit before rewriting RTree bounds into a common base class.
Rewrote much of the RTree to make things easier to read and understand, and hopefully squash a few bugs.