Will this work simply as `dict(data)`? Sequences of pairs should be handled properly by this function.