configure runner for 'ir' repl.

i copied the code from bin/ir, i haven't had a chance to try it out yet.
fix typos and syntax errors, freeze constant values differently.