use stdClass instead of array for term definition sets

Use `\stdClass` because pass-by-reference; this way, many `TermRenderer`s can share the same object