Like @AshokPeddakotla-MSFT mentioned, you can definitely put arrays in your twin. But the link to that blog post isn't using real arrays, but a workaround from a time where arrays weren't supported yet. Here's an example of how to add an array to your twin using the REST API.
You can send a PATCH message to https://fully-qualified-iothubname.azure-devices.net/twins/{id}?api-version=2020-05-31-preview
with the following body:
{
"properties": {
"desired": {
"iDidAnArray": [
"foo", "bar"
],
"arrayWithObjects": [
{ "prop1": "foo" },
{ "prop2": "bar" }
]
}
}
}
I included an array of strings, and an array with objects.
You can then verify in the portal (or by doing a GET request to the same endpoint) that the arrays were added: