Issue #307:

* fix sometimes missing source string in results for search/entity
* fix perfect_match search not catching entities with []