Fixes: U4-2928 Packages tree shows context menu for items that shouldn't have one + other issues with legacy trees and menus