Fix hoisting of let/const declarations.

Only hoist top-level let/const declarations (necessary for modules=instantiate) and fix bug with
initializers of hoisted declarations.

Fixes #1028.
I see. Now it makes sense.