if you look a the code before MY change, it was calling ``is_sequence`` on an index (which is very slow), that's why I intercepted the Index type here, but it seems that if the passed value is an index and  not exactly equal to the index of the frame then ``is_sequence`` is called which is a perf issue...