Bad namespace broke the new constructor type hinting.

Fixed and added unit test to cover this problem.

Sorry about that!