:set behaves like in ghci

and a couple unrelated changes