implement SerializeWithIndices in transaction input filter for passing arguments to preprocess commands