Added copy with options, root node accessor, syntax and bug fixes

- Fixed some missing braces
- Fixed some "return NO" that should have been "return nil"
- Corrected an error code
Allow prototype objects to be used as schema nodes