Return same type of candidates (dict items)

Fix error with YouCompleteMe