fix deserialization of arrays