Refactors `Identifier.scope` to be a `ReactiveScope` object with an id and range. This gives us a place to later add a list of dependencies for the scope.