respect default values of the json-schema draft 4.
add support for array type item.