Fix bugs in `PaginatedChoiceState.shorten_choices`.

This fixes two bugs:

* Mis-typed variable name in case where text is too long.
* Corrupting values of truncated choices (eep).