Ref resolution scope

Okay, I think this resolves :stuck_out_tongue_winking_eye:  the issue mentioned in #66. It at least passes the tests I have at https://github.com/json-schema/JSON-Schema-Test-Suite/pull/34

@Julian, how do you feel about this method?