Make sure that code array is C-contiguous before passing to Cython function.