Bad namespace broke the new constructor type hinting.
Fixed and added unit test to cover this problem.
Merge pull request #2 from joshmoody/master

Bad namespace broke the new constructor type hinting.