Fix getting symbol usage scope

Close #471.
I think it's better to add a method like `IProjectProvider.IsVirtual` (or `IsForStandaloneScript`) than check runtime type.