Added constructors for ObjectWithArray, NestedObject