fix(patch-op.js): Use slice instead of splice for converting to array.