lib: generics Register/Group