BUG: core: consider both C and F order buffers as contiguous
Merge pull request #3827 from pv/fix-gh-3796

BUG: core: consider both C and F order buffers as contiguous