Improved handling of hexadecimal <=> NSNumber