Fixed orderbook serialization