Fix #115 Issue about var_dump var_export and count optimizer

- fix issue

- added tests
Merge pull request #118 from zaets28rus/115_issue

Fix #115 issue