fix and test duplicate WebScript @Uri detection

The ids Set was not being populated.