Replace genre names with IDs in the menu definition already, not only
when the menu is called. Unfortunately this requires us to re-register
all items whenever the music library changes, as genre IDs etc. might
change, too.