switched pointers to std vectors in array_*