Fix some minor issues in TrieTokenizer and also add support for offsets (same way like KeywordTokenizer)