Fix repr.

Note that this requires a pythonic type system to work.
Fix ascii function and test.