Make sure nested Data objects are converted to dict in Data.dict()