move parts of compileReplDecsScript into repl_compute

not sure that all of this makes sense: some of the stuff is
bootstrap-specific. but the idea is to make it reusable for other times
we might want to evaluate the compiler in the logic.