Convert some spec to doctest
Make cabal run doctests
Fix doctest for renderCharOrString