Changes lists and dicts to objects