cst_tokenstream: Improve safety of API and fix logic errors flagged by static analysis.
cst_item: item always has relation so dont check.
HTS_model: Improve readability for humans and static analyzers alike.