Fix autocomplete to pass the spec

- Fix the activeIndexes usage
- Upgrade to use the new RangeController API

There are still some issues like pressing down after selecting an item and choosing a different item: it doesn't update the text with the new selection, not sure if it should though, the spec doesn't test that.