fix string management on ObjectFactoryRegister and NamedService base class