fix Issue 6461 - multiple definitions with typeid and multiobj