Support 1d array mem allocation.