Implement bn.{iseven,isodd,modadd,modsub,modmul,sqr}.
Implement bn.{cmp,ucmp} and improve error reporting.