ref-filter.c: use trailer_opts to format trailers