added some tests for has_near_matches_*
fixed major bug in *_near_matches_generic_ngrams()