Sentinel cleanups

Improved sentinel handling, including replacing the TRIE_SENTINEL stuff with a union and a >25% reduction in the memory overhead from the example application.