Generate: more tests, fix PeriodicMapSequence