Issue #307:
* fix sometimes missing source string in results for search/entity
* fix perfect_match search not catching entities with []
Merge pull request #314 from pascalchevrel/issue-307-fix-api-regressions

Issue #307: