If we're going to include an hobject in the ghobject, we should probably use the hobject_t encode/decode.

if version < 5, rewind the iterator and decode an hobject_t and then convert that to a ghobject_t

if version >= 5, just decode the hobject_t and then the other fields