add contiguity checks for DenseArrays as mentioned in #1