Fix wrong MediaType comparison
Rewrite lifted binary operators to match C# spec more closely. Fixes #12608 and about 10 other issues.