add 1-argument dict constructor, from anything that generates pairs