Change the cython relabel function to only work on one array.