Remove obsoleted C++ code (field Scope::vals)
Simplify struct Scope and struct VM