Not sure what you mean because bash has the same problem -- you can't return an array from a function.
And I still think Shell, Awk, and Make Should be Combined. In that world you'd still have one problem :)
https://www.oilshell.org/blog/tags.html?tag=awk#awk
Oil has recursive data structures, although I'm still working out how to compose shell-like "procs" and functions which could return an associative array. We could just add them both naively but I think it would cause many shell programs to be a lot messier.