PDFBOX-1865: take the length of the stream into account when comparing xobjects

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1561782 13f79535-47bb-0310-9956-ffa450edef68