Output all defs as refs.