extend iscontiguous to ordinary arrays