Implement bidi on MathML token elements and fix incorrect rendering of RTL error messages