work around as3 Type vs haxe.macro.Type issue