Fix issue#320: Bug in haxe generator
Merge pull request #321 from SlavaRa/issue320

Fix issue #320: Bug in haxe generator
Merge branch 'master' into tests