Ensure that a type is a base type of one of the template types, that is, Set, Span, SpanSet, and Temporal.