CZI: update to correctly group files in multi-file datasets

Also updates the relevant test to check for the new behavior.

Fixes #12189.