Prevents removal of var declarations under various conditions.

...for compilation with closure compiler in its most strict mode).