Preventing duplicate consecutive titles in agenda generation.

Fixes #29.