Fix array infinite loop error when inferring Array suffix sequence