Add a Scope property to ResolutionException.

ResolutionException is currently only used for TypeReferences so it
will always be non-null, but if/when ResolutionException is used for
other things -- such as FieldReferences -- it can be null.