More bugfixes for a11

+ Fixed line detector variable declaration generation
+ Fixed unwanted sensors multiselection after some clicks on them