support arrays of objects on the way out