Selects the identifier space; see SmpMenuFamily. Omitting it
falls back to mainmenu, because that family cannot dispatch a numeric
identifier at all.
Maps allocated id ↔ the C++ command identifier.
Upper bound on auto-allocated ids; null = unlimited.
Stateful counter passed to the recursive menu builder.