Support for arrays (de)serialization