Implement error handling in Sequence::of()
Verify Sequence::iterate() and Sequence::generate() arguments