fixed prim-gen types repr to match constructor syntax.