Remove the "override variables" in complete.cpp

Now we pass in the variable stack directly
Replace most explicit uses of env_vars_snapshot_t with environment_t