Haxe 3 compatibility

Looks like there is no more haxe.Public. So I made some fields public.
And Hash -> Map.