Add method putAll to put an array of key/value pairs into a map Bug 30882, suggested by Rafael U. C. Afonso