Why "Element.SetParameterByName" does not set the parameter for all instances?

Script and Family: .dyn and .rfa.7z — Яндекс.Диск
For some reason, with the same parameter settings and input data, Element.SetParameterByName in the first case sets the parameter value for all instances, and in the second case only for the first. I understand that the reason is some little thing that I didn’t notice, but I can’t figure out what it is… Thank you in advance for your help!

My guess is the list structure is different in the two String Replace nodes. When providing a list of lists and a list I believe it will usually end up with a different lacing outcome.