Maybe it would be possible to omit the 'saver' and 'loader' class and instead pass pointers to the XXX_towire and XXX_fromwire function saround. The problem is of course the skipping of objects alltogether.