Fixed encoding of arrays