Fix 22 Sphinx warnings.

Only the usual 6 warnings are still emitted. Among the warnings fixed were:

* References to modules that did not exist.
* Missing blank lines before code blocks.
* Missing blank lines before and after nested lists.
* Spuriously indented text.