Support templates with missing MediaBox entries

Search not only up the Parent hierarchy in the store, but items that include this
dictionary in its Kids for the MediaBox.
Support MediaBox entries that aren't dereferenced

Some MediaBox entries return a PDF::Reader::Reference that must be
dereferenced via PDF::Reader::Reference#data.