Actually, bidi does clobber imakeidx. In all of the document classes, bidi
redefines the \theindex environment. Some of the imakeidx functionality
also comes from redefining \theindex. I had problems with this in the past.
The only issue that would be presented with the op's patch is that there
won
To clarify two points: to op used the intoc option, which should make the
index appear in the toc (very aptly named, egreg). Thus, this is an example
of bidi making a problem. It's just a lack of support really. The
workaround he used was to save away the imakeidx version of theindex and
restore it