fix recursive context passing in TutD REPR
tighten up ghc warnings