ast: fixed hang for weird loop: 'for (each_window(list,p))'