Support custom type field for table creation.

The underlying type of the custom type must be primitive.