DIC Factories: automatic resolution of parameters

Reworked from nette/nette#1289.
Is this condition correct (the first part)? Looks like different thing than that exception is thrown for. -_-