when constructing GL vertices, support null or empty vertex lists
support normalizing 2d vectors in addition to 3d ones
convert GL polyline builder to use new vertex construction method