corrected deserialization of arrays