Improvements to the doctest standard library