Handle hex strings. Fix a couple bugs when handling indirect objects.