minor code cleanup in allocVector