A few of bug fixes/enhancements

Fixes/improvements:

- Bug fix in coalesce_streams which prevented streams to be merged correctly.

- Enhancement: streams are now coalesced for all output formats (not just html).

- Bug fix in the rst converter which resulted in malformed reST in case the output of a ```parsed-literal``` directive was empty.

- Added a test for the above-mentioned issues.