Set "global" on undeclared SymbolDef-s
Add `negate_iife` option to the code generator.

See discussion in a9511dfbe5c0d96d8cacb87582aa9a19737bbb98