DI: Added support for backslashes in service name (BC, deprecated) #682

I have written commit from my head with changes that should be necessary. It is a draft to help solve issue #682.