espra/db: add types and sentinel to ensure term prefixes stay within a single byte.