Fixed stack overflow bug when using arrayAssignments.