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