Remove unnecessary casts
Fix behavior of Disable Auto Refresh option, and make the setting much more aggressive (also disables automatic updates of glyphs in Solution Explorer)