making sure that both DObject[A] and DObject[Iterable[A]] can be saved