c653741a3c
First, the search for existing type with the given scope should be done also for namespaces. Second, with the string operations we get no scope as empty string "" but the rest of TM functions expect scope to be set to NULL in such case. Fix that.