New utility function fromPairs

This function can be used to simplify construction of data types from
standard arguments (key-value pairs). It requires that constructed data
type has to have Monoid instance.