Operators invariant under finitely many input changes with applications to aggregation of sequences