add Natural and SafeLong to IsReal
Optimize seq.scala a bit.

Try to minimize conditional checks inside of loops. The new strategy
will be especially good in the case where one sequence is significantly
longer than the other. But even in the general case there should be
fewer conditional tests now.