Improve openfl.display.BitmapData#getVector performance.

Avoid unnecessary array reallocations.