array fixes and vector support