applyDelta
Applies the non-temp: entries of delta to the state, tracking them in the delta map.
temp: entries are skipped; apply those with applyTempDelta.
Applies the non-temp: entries of delta to the state, tracking them in the delta map.
temp: entries are skipped; apply those with applyTempDelta.