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