Add a test for @AutoFactory on constructors and fix issues uncovered by the test.
Merge pull request #10 from gk5885/autofactory-constructor

Add tests to ensure that @AutoFactory works when applied to constructors