Implement 'list"-type commands.

"List"-type commands get dynamically replaced at runtime by a list of
commands. For example, this can be used for a "Recent documents" list in
the File menu.