implement dict(chainmap)