return DictToObj instead of a dictionary when the accessed item is of type dict