Pdi 11006

What was done:
1) reverted variable detecting logic
2) changed unit tests to proper use special symbols inside variable names
3) changed ConstTests to be platform encoding independent