Fixed a bug in unit conversion for sequences

In the process of fixing this, I discovered that a number of doctests were failing, mostly for trivial reasons (like that Python has gotten smarter about how it outputs numbers).  We should update the travis script to run all the units doctests.  (That's the only module that uses doctests.  I don't like them, but Chris was very into them.)