Nested array encoding.