Fixed compile error in REPL.hs. TODO: the way apply is used seems to be all kinds of messed up; try to run apply on a quotation on the stack and you will see.