[PATCH 4/7] d2d1: Refactor outline generation as preparation for the new TYPE_END vertex type.