Problem with setting value of type list from javascript inline script

I am trying to define a list value for variable inside javascript inline script

However in the process instance is stored something, which is not a list and cannot be read through the REST API.


What am I doing wrong?
Thanks in advance