Moving auto-declaration of undeclared vars to ExecContext to handle all situations where undeclared vars can be used.