MRG: array2tree and array2root

xref #62