fix indentation
refactored object and array validation, added object dependencies
added array, required and object dependency tests