Fixed autowiring for services without constructor.

This fixes #4