bus: fix length calculation when serializing SD_BUS_TYPE_SIGNATURE