Fixed bug in schema resource, renamed SchemaNode to Schema, fixed validation of nested
schema nodes.