Fix the environment which is used for instance functions.
Work for defined __set and __get.
Add overrides for resolving classes and namespaces in the global environment.
Test that class instance methods have this.