Improve temp variable handling for destructuring transformer

This fixes an issue where we added the temp variable outside the
function body when transforming destructuring for formal
parameters.

Fixes #1063
Here is how this works:

When we find the first parameter that need to be transformed we push. If we then in the function body see that we have pushed we pop.