fix generated type/funs for dcons