DI: properties of ServiceDefinition & Statement changed to private

Public properties in core object ServiceDefinition are a design flaw. I've used them while developing DIC and I forgot to change it.