Fixing a problem with JRuby 1.7 and yielding in CartesianIterator#each.
Merge pull request #5 from bclennox/fix_yield_for_jruby

Fixing a problem with JRuby 1.7 and yielding in CartesianIterator#each.