Cyclic classes and an ergodic theorem in dynamic fuzzy systems