Core/SmartScripts: Fix multiple target_types

Checking the worldobjects GUID against the iterators GUID instead of pointer to worldobject against pointer to iterator, as 2 different pointers may point to the same object.
Closes #12670
Merge pull request #13291 from Unholychick/patch-1

Core/SmartScripts: Fix multiple target_types