Tweak JSON generation from objects to arrays, and test backslashes in SERTEST.C
Change DIRSTACK to malloc() all at once rather than on-demand (reduce fragmentation).