Fixed overlapping parts processing in all Aho-Corasick algorithm implementations.
Optimized matches counting by skipping length check for all but the last not more than 31 bytes.