Replaced all serialization code with updated v0 format.