I disagree with investing further effort into BIDI support. It is dead for all practical purposes in standards and implementation, and the fact that we found all these bugs in it just further confirms that. The only answer to that is to bite the bullet and remove it.