added roundtripping test.  Fails!
fix a bug with the way the type dicts are specified