interpreter: resolve all references before interpreting
move VariableRegister in interpreter package