Binary serialization of arbitrary object graphs