Fix incomplete type resolution inside reduce-type-transform