Modified sanity check for inconsistent index spec; added check for missing index sequence.