Minor REPL fixes
ERROR/GUARD always uses Error objects in JS

This allows built-in errors to be reported in the same way.