Add tests for other valid schemas with id properties.

Commits 0c63566 and 482521d fixed improper handling of the id
attribute, this adds the tests to prove it.

Also introduces a minor refactor to JSON::Schema#generate_schema_uri.