Handle resolution scopes

@titanous 
The [examples in the spec](https://tools.ietf.org/html/draft-zyp-json-schema-04#section-7.2.2) indicate the latter, but the former makes more sense.