Correct for row major ordering of C-arrays. Match cells NSArray to row major ordering as well.