DIC Factories: automatic resolution of parameters

Reworked from nette/nette#1289.
It is [not](https://github.com/enumag/di/blob/factories-params/src/DI/ContainerBuilder.php#L209-212).