fixed REPL and support for arrays