adds capability for injector to map a class as singleton