Totally invariant set functions of polynomial type