def resolve1(x, default=None):
while isinstance(x, PDFObjRef):<EOL><INDENT>x = x.resolve(default=default)<EOL><DEDENT>return x<EOL>
Resolves an object.

    If this is an array or dictionary, it may still contains
    some indirect objects inside.