[rosmsg] fix serialization of fixed-length lists