Check CRC of last IDAT chunk

Moving the check to the end of the loop is save because the length is checked anyway such that in the worst case and empty slice is passed to the reader. 

I have tests for this set up but they are ugly/hacked. I could commit them anyway if wanted.