Add objectRoot to make it easy to serialize arraylike objects.