Handle nested arrays