tokenizer: use entity maps of `entities`

I don't want to maintain them a second time, plus, the overhead isn't
too much.