Emit namespace for variable declarations as well
Emit namespace for variable declarations as well

Otherwise, you get ‘x is not defined’ errors. No idea how this worked
for so long, seems to be a bit of a Heisenbug. But I’m very confident
that this is the correct fix (it’s just doing the same thing that we
already did for functions).

lucaswerkmeister/ctsl