use arrays for serialized entities + fix a bug in deserializer