Fixed BankState serialization