LuaTeX-specific enhancements and fixes for LaTeX math typesetting