Don't store duplicate element references in the scope array.