Prevent adding a vertex with the same position to a stroke

Signed-off-by: jcapote <jorge@jcapote.net>