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