Changed updateBackingObject to update relationships once instead of one-at-a-time

Instead of updating each relationship one-at-a-time, create a
dictionary of them and update them all at once so that
newValueForRelationship doesn't fail after the first relationship.