[PATCH 5/7] d2d1: Use the TYPE_END vertex type when last/first vertices coincide.