Replace token index with ordered_set implementation.

For SPEEEEEEEED.