native-client-api: s/typeid/type_id/g for all variable names.