[Olena-patches] 3508: Make io::dump::* more robust and improve dump format.