JRuby

each_with_index yields invalid values when custom Enumerable class calls Proc#call