repl: make built-in modules available by default

Closes #3564.
Closes #4578.