Polygamy, paternal care in birds linked to dinosaur ancestors