Add @safe to cycle unittests except for cycle(staticarray)
Merge pull request #2615 from braddr/cycle_safety

Make cycle(staticarray) @safe