make serialize also serialize children and child collections