Fix FilterAndSortCandidates behavior

FilterAndSortCandidates(completions, 'word', '') should
return a dict, not a list.
Merge pull request #309 from JazzCore/cpp_fix

Fix FilterAndSortCandidates behavior