Check whether ctor() exists before calling it.

Update type definition file.