Fix "self" param to the GS.leave callback

Otherwise, switching out of the following state will give a nil error:

```
MyState = {
  count = 1
}

function MyState:leave()
  self.count = self.count + 1
end
```