Ok got it all working.

Turns out I needed to have a completly non-mutable trie in order for it
to serialize correctly; this has been implemented.

The actual sentence matcher should work now. Time to test!