fix and a test for using the "this" in a function belonging to an object instance. Same code as in assign() but we need it earlier.