Handle max and min spectra indexes, correct merge errors

Refs #9338