I've just fixed one refcount bug in UI::View::View, so we don't appear
to leave dangling refs on SPDocuments anymore.
However, someone's still leaving a dangling ref on SPRoot, so we're
still leaking quite a bit of memory after a document's closed. I'll
stab at it further tomorrow.