Maybe this trips As3 because it imports haxe.macro.Type via haxe.macro.TypeTools or something. Can you try removing this import?