Amira: fix reading of > 4 GB files

Fixes ticket #10623.
LZW: fully allow truncated data

Fixes ticket #10647.