EventStorageLayer: Fix when deserializing complex structure