plist.cgi: gen_tree: Always return ref to array