Support sending multiline code to REPL

This is related to #253