Add pdf.Dictionary.Size() method.
Also make several minor adjustments.