for (int i = 0; i != typeRegister.size(); ++i) {
Type t = typeRegister.get(i);
JavaIdentifierOutputStream jout = new JavaIdentifierOutputStream();
BinaryOutputStream bout = new BinaryOutputStream(jout);
bout.write(t.toBytes());
bout.flush();
bout.close();
// FIXME: strip out nominal types (and any other unneeded types).
myOut(1, "// " + t);
myOut(1, "private static Type type" + i + " = Runtime.Type(\""