Call explicit type register rule to avoid errors when the type file is imported from another type file. (Fixes #4118).