Minor fixes for trie root stuff.
Basic paranoia compiler flag.
Additional fixes & cleanups for ref counting.
Paranoia logging.