Export `jl_alloc_array_nd`, re-add and export convenience wrappers (#52248)
This is used in an example here in the docs
https://docs.julialang.org/en/v1.11-dev/manual/embedding/#Multidimensional-Arrays
and needed to adapt to the removed `jl_alloc_array_2d` (#51319).