Detects declaration statements with explicit types that can use 'var' instead.