Add an id-based schema validator, currently unused (and untested).

Need to test the schema validation routines independently, rather than via the scene parser,
since id-based schema validation is not needed for scenes.