Keep only the basename of url()
convert string array to tree
minimal invasion for hybrid structure of nested array-object