Improve double formatting performance on net8+ and fix equality incorrectness re special doubles
#551
| Job | Run time |
|---|---|
| 6m 28s | |
| 6m 28s |