Scope editing doubles entries on custom attributes
Description
Here is an effect of adding custom attribute 'foo' one time. Note: not only duplication should not occur, but also when trying to add the same attribute two times, the second time should do nothing.