Tests to reproduce bug found by Peter D. Gray.

See https://github.com/richardkiss/pycoin/pull/1
Fix test failures.
Fix another Python 2.7-only problem.
Prep for 0.23 release.