PyOP2: Fixed bug that caused crash, associated array of kernel pointers instead of looping over them