It is happening here too:
```python
if vocabulary is not None:
    if not isinstance(vocabulary, Mapping):
        vocabulary = dict((t, i) for i, t in enumerate(vocabulary))
    if not vocabulary:
        raise ValueError("empty vocabulary passed to fit")
    self.fixed_vocabulary = True
    self.vocabulary_ = dict(vocabulary)
```
Should we change that?