Missing type check error for constructor returns, fixes #261