Change OnCheckedChangeListener to OnClickListener

This seems to solve the Nullpointer problem mentioned in issue #759
Add test for issue #759

Check that copying of ForeverBrick succeeds (threw a NullPointerException)
A little refactoring
Fix display bug of EndLoopBrick in action mode
Add test for CheckBox visibility

Also refactor a little bit
Add test for copying of LoopEndBrick
A little refactoring
Call setCheckboxView
Also get NestingBricks sorted in smartBrickSelection
Refactor if bricks

They crash on copying via action mode
Add tests for copying of if bricks from action mode

Also removed some newlines