preparing for haxe3, basic stuff working

needs work on Map(s) and other edge cases