Implement a proper equals on JsonNumber.

This is required to get the tests passing again.