def read_extended_object
      mod = safe_const_get(read)
      object = read
      object.extend(mod)
      object
    end
def read_extended_object
      mod = safe_const_get(read)
      object = read
      object.extend(mod)
      object
    end
Reads an object that was dynamically extended before marshaling like

 @example
   M1 = Module.new
   M2 = Module.new
   obj = Object.new
   obj.extend(M1)
   obj.extend(M2)
   obj
 is encoded as
   'e', :M2, :M1, obj