SystemMenu: convert menu from list to tree.