RST writer:  Use `.. code:: language` for code blocks with language.

Closes #721.
Also fixed whitespace in lhs tests.