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.
Missing space between () and {