Get Format.f() to follow typedefs.

So that it works with `sys.db.Types.SDate` etc

Fixes #9