Change to core haxe.ds.Vector type and other clean-up