Faster nested children handling

Improved the performance of resolving deeply nested children arrays by simplifying the logic for handling large arrays. The change avoids inefficient chunking and instead processes array elements more directly, with test coverage added for large nested arrays.