Ruby nested struct dump and load.