Fix Enumerable#find_index for yields variety. Fixes #2625