Foreach: add $value so that the value won't be assigned to $key

refs #7060