simplifying numAffectedItems computation, model binding in applyArrayChange