restores support for TypeInstance in ts_create()