Previously, using "is_f_contig" and "is_c_contig" together would leave one of them undeclared. Closes #1872.