Add an optional maximum size for the decoded terms.
The default is 10MB.
Fixes #12