Fix type inference on len operator
Assign the array element, not the array