Deprecate when.iterate and when.unfold. Close #370