V5 stable rst bugfixes

This fixes some of the conversion problems. Not sure when I can continue to work on it, so I submit a PR in the current state. I'll add patches until this is merged if I have time to do so.