Fixed deprecation notice on num::from_str.
Added `exit` command to repl.
Added `dump-heap` command to repl.