Rewritten tuit/array.lua, especially unfold