Fix use of TimingFunction in demos after e41be2ee