Add support for hex-encoded keys in dictionaries