Fixed ``quadratic_residues``. I prefer keeping 0 as a residue, since Sage does too.