Persistence modules with operators in Morse and Floer theory