Update tv4.js

Only call resolveUrl() on "id"/"$ref" if they're strings