Fix asset id generation for types in the global namespace.