Fix crash in GFT and autotest errors in PCIDSK and PDF