ay types.

XXX This is a mess.  Common tests should be unified with string_tests.py (and
the latter should be modernized).
