Support type definitions in REPL.