cpp: bioformats: FormatReader detail: Correct seriesToCoreIndex logic