Writes repeated fields, including packed scalars.
encode_repeated :: ( w: *Writer, values: [] $T, $kind: Scalar, $tag: s64, $packed: bool )