fix detection if an aesthetic is calculated

- variables can also appear as part of an expression
    - detection of identifier limits is performed using lookarounds and Perl
      regular expressions
- fix glitch in character range
- remove unneeded local variable
- add test