SES-1953 distinguish anonymous var names by value type
SES-1953 added unit test for case, which greenlines after application of
fix.
code cleanup
Merged in ses-1953 (pull request #223)

SES-1953 distinguishing anonymous vars by value type