Fix serialization of store entries