added polyline vertex / index update cases, cleanup cglColor / cglUtil