Ensure that Menu#roots only returns items at a single depth.

Fixes #2263