Remove locations on touchend.

This avoids a potential bug where a touch identifier might be reused in
another gesture, but could still be referenced in locations0, thus
causing problems for the old gesture on touchmove.

On touchmove, we also make sure that l0 exists as well as l1, just in
case.