Revert "workaround for resurected ghc bug?"

This reverts commit 1dd62c4ee1a6c39d34ef4f432837ef665b34b0e0.

I have a better fix coming up.
call doctest first

otherwise, we get the following strange error message:

  reference: Too late for parseStaticFlags: call it before newSession

see the previous two commits for more details.