Support creation of arrays as toplevel doc