Fix Issue 5507 - countUntil should take Ranges... instead of R2

http://d.puremagic.com/issues/show_bug.cgi?id=5507