Add primitive support for template types.