Implementing working schemas for more advanced json-schema support.
Fixed a bug where adding new elements to an empty array didn't work.