Improved exception message when a dependency cannot be resolved
Fixed detection of generic parameters for constructor injection