duplicate definitions are now checked for all items

until now this was presented to the user as a dependency error, which might be hard to track down