More bugfixes for a11

+ Fixed line detector variable declaration generation