[libpng16] Added tests for invalid palette index while reading and writing

(work in progress, the latter isn't finished).
7 files changed