Attempt to fix Pernet-Stein in case where small prime divides determinant.
Attempt to fix Pernet-Stein in case where small prime divides determinant.

jpflori/flint2,dsroche/flint2,jpflori/flint2,dsroche/flint2,fredrik-johansson/flint2,fredrik-johansson/flint2,dsroche/flint2,wbhart/flint2,fredrik-johansson/flint2,jpflori/flint2,dsroche/flint2,jpflori/flint2,wbhart/flint2,wbhart/flint2