I think this is a bug caused during latest updates to workflow (here). Even I have noticed this behavior causing issues in iterating through the output in a workflow that was working until 2-3 days ago where reading an array was giving an output like below:
[
"credential_id1",
"credential_id2
]
ie with just one set of []