Rename was done. 

The optimization turns into a complexity nightmare as in order to serve both isContinuous* checks, it needs to be the "last complete group" and "at least the last two edits". So, can be done (e.g., reverse iteration over the ops array, breaking when both conditions are reached), but considering I expect the lastOperations array to generally be less than 15-20 items, I suspect the performance gain is not worth the complexity increase :)