added haxe.ds.Vector toArray