Use structured binding and for-each loop, remove reduntant type casts, use `find_if` instead of loop.
# NEW DIFFERENTIAL REVISION
# Describe the changes in this new revision.
#
# Included commits in branch cycles-merge-operator-cleanup:
#
# 78171f1aed33 Cycles: Merge operator code cleanup
#
# arc could not identify any existing revision in your working copy.
# If you intended to update an existing revision, use:
#
# $ arc diff --update <revision>