Fixed ListBox loop bug and check for menus set to null.
Fixed so link_list/image_list support nested items.