Prevents removal of var declarations under various conditions (required for compilation with closure compiler in its most strict mode).