Merge #17435: Don't use mutable default values in Timer.

Patch by Denver Coneybeare with some test modifications by me.