fix Issue 8313 - stack overflow on recursive ifti evaluation