BUG FIX: upload correct serialised positions

This makes sure that selected ranges are serialised in respect to the
original DOM without modifications.
fixes #6