Fix a variety of Sphinx errors

Fix incorrectly delimited code blocks and class references. Nothing special.