Calls ob->func(key, value1, ..., valueN, extra,...) resp. applies
the closure to every entry in the mapping. The keys are passed
by value, the values are passed by reference and can be
changed in the function.
Any number of extra arguments is accepted and passed.