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

Implementation for #687.