Make the depagination actually work.

* Eliminate numerous careless mistakes.
* Fix a silly, random typo from a previous commit.
* Make the depaginator recursive like it should be.