sixth iteration on encodeIndexCQMetaData, now using context bounds for some decoders, reduced some code duplication between IndexEntry and RasterIndexEntry