Fix incorrect broadcast behaviour

There was a special in which broadcast were not restarted correctly:
- One sprite contains identical string representations of scripts. In the case of TicTacToe these were nested IfLogic-Actions --> e.g "Sequence(IfLogic)#upper left", which was 5 times in there and led to confusion on which actions to restart
The simple solution is to add a script counter and change the string representation to e.g. "Sequence(IfLogic)#upper left0", "Sequence(IfLogic)#upper left1" etc. and also to lookup scripts instead of sprites.

Furthermore, I've added another regression test for that as well as a file logging method, which was extremely useful to identify the incorrectly restarted actions (too much output for the console or logcat).

Jenkins testrun:
https://jenkins.catrob.at/view/All-Categories/view/Catroid-multi-job/job/Catroid-Multi-Job-Custom-Branch/2031/
Checkystyle error is fixed.
Actually, as was mentioned already by someone else, the current speed is still not on the same level as it was before we tried to correct the bug regarding the broadcast and wait brick. Let's try to get rid of everything that unnecessarily still slows it down. I am not sure if that is the case here, but whenever some chance comes up, please help in making it fast again.