irony-completion: improve candidates API