Fix for #588: risk of stack overflow in eachSeries.