fix another duplicate point timing bug

If the backend appended A,B,A,B,C then the duplicate wouldn't get removed.

The `last = Math.max...` change is the actual fix; the other stuff is just
another potential bug I noticed at the same time.
backend-pg: v0.0.6