More work on bug #8292.  It now normalizes the incoming data so that it is always indexed zero based with no gaps.