fix #46: overly tight scoping of auto-declared vars from generated IIFEs