Fix autocomplete when source is a flat array

Fix autocomplete when source is a flat array e.g. ["tag1", "tag2"],
not an object with id and label items. In such case tag id is a number
not a string.