Whenever Dynamic Preferences are used in a SmartApp, the section for label and mode is not added to the app's preferences automatically. This change add that section to the example code.

Initially I was going to call this a bug and file a ticket, but
seeing how even the official apps add the section manually, I think
at the very least this behavior needs to be documented.