I didn't check the code, but based on the error message, you are trying to use an operator on an array, which is not possible in GDL.
Did the message write a line number? Pasting the code at that line would help us.
Software Engineer, Library as a Platform
Graphisoft SE, Budapest