Use fetchIfRef to get annotation dictionaries.

Fixes failure to display annotations in PDFs where the annotation
dicts are inlined in the page objects rather than in subobjects.
Merge pull request #2836 from sgtatham/master

Fix handling of inline annotation dictionaries