Honestly, most of these issues are just a product of .tex's long and storied history. If some foundation plunked down $1-$10 million, it could definitely produce an open source successor to .tex (with extensive, maintained, and documented libraries like Mathematica) that avoids most of the badness.