Clean up some naming
Fix a warning about an incorrect type
Fixes and ehancements for the check() method

Now supports INT and BYTES sentinel values. Also properly truncates the
internal buffer through the sentinel value.
Drop strlen use in check()

The length of the bytes sentinel is now stored in the first char of the
term_bytes array. The remaining bytes contain the sentinel value
itself.