Type-specific unique id value generation