fixed a bug HashType when converting the value; ...

the fix just tests the value to ensure it is a hexadecimal string rather than converting the value to a long integer.  Without this fix, the final assertion in test_md5_type in test_serialize.py fails