Change tempButton variable to number at the moment it's a string. You have to make a new variable and replace it in the events then delete tempButton and rename the new one.
I hope that was the problem. It works for me now.
And you have to clear the local storage otherwise you will have the wrong dictionary with double entries. You could use clear storage once and delete it then.
+ System: On start of layout
-> LocalStorage: Clear storage
I forgot also to save the dictionary in the else under the is noDouble
+ System: Else
-> LocalStorage: Set item "ButtonBindings" to ButtonBindings.AsJSON