Implement Sequence::toMap()