Flatten the objects in a stream with flat