fix haddock comments in doctests