Add and use ko.utils.objectForEach to interate over object properties

Implementation for #687.