Implement Sequence::toMap()

This PR implements `[:var] Sequence::toMap()`, to complement `var[] Sequence::toArray()`.