Singleton template type and helper macros.