Fix IsQNAN() and reduce code duplication

I was adding float tests and noticed the constants in IsQNAN() were missing a nibble. No wonder it's not used anywhere... But yay for test-driven development \o/