Fixing serialization of one-element arrays