Entrypoint identification accuracy fix

Following testing against iPhoto, found an basic case (entrypoint =
section start) which I had somehow missed. This fix adds some extra
debugging printfs, and fixes this issue.