Fixed detection of random access iterators.