update core
compiler: introduce global module root, enables definition injection
repl: enable module switches, don't crash on empty lines and during compilation