These attributes are used by the dashboard to determine which modes to display when you try to change it - thus the name being supportedXXXModes - so they are intended to be a JSON-formatted list.
Hubitat used to tolerate a plain array, but changed a few releases back to enforce consistency:
From the GitHub link, the actual event sending is abstracted, but the fix looks like it should be at Line 634: