Add [] accessors for json::object and json::array. Extend tests with modifications