I tried it again today and it worked fine O.o
I don't delete the issue, so if someone else runs into it, he can confirm it.
/stats entity @a set AffectedItems @p OBJECTIVE
puts always 1 into the objective when succesfully executing this command (0 if not):
/execute @a ~ ~ ~ clear @p minecraft:torch 0 128
but
/stats entity @e[type=Squid,name=NAME] set AffectedItems @e[type=Squid,name=NAME] OBJECTIVE
works fine with:
/execute @e[type=Squid,name=NAME] ~ ~ ~ clear @a minecraft:torch 0 128
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.