Fix hoisting of let/const declarations.

Only hoist top-level let/const declarations and fix bug with
initializers of hoisted declarations.

Fixes #1028.
For-in and for-of loops were already mostly working. I simply had to change one line in `transformLoopInitialiser_` above to make it work.