Revert "WIP: trying to use transformPredefinedType"

This reverts commit 71cf4e967ddba6c2ea2859baac5bbb75cb495361.
WIP: use null instead of undefined for missing type check