PDFBOX-2244: Handle out-of-order array indexes

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1615976 13f79535-47bb-0310-9956-ffa450edef68
PDFBOX-2244: Improved debugging messages

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