[BUGFIX beta] reduceComputed handle out-of-range index.

f3aa4a2d0854395e1f8158a74d1810c290a75139 added support for `replace`s on
dependent arrays with out of range indexes, similar to what `[].splice`
supports.  However, it had two errors that are corrected in this commit.

1.  An off by one error when determining the normalized index for removal
2.  It did not limit the removed count by the number of items that could possibly
    be removed.

Change `normalizeIndex` to the more natural signature of `index, length, count`.
This has no effect on any public API.

Big thanks to @Cyril-sf for pairing on this fix.

Fix #3586 (again).
Merge pull request #3627 from hjdivad/fix-3586-maybe-for-reals-this-time

[BUGFIX beta] reduceComputed handle out-of-range index.