list->vector, fixed nref for arrays