jpeg2000dec: Check ncomponents and tile dimensions