Transform array in Function

In which case the data is not as described.

Use debug nodes to check what is going into the function.