Fix issue with temp variable transformer and multiple this

The temp var transformer was storing the this temp bindings on the
wrong scope object.

This renames the methods to make the two different scopes clearer.

Fixes #1086