* improved documentation in g_scalar.c
* update scalar's array elements when drawing instruction attributes or transform changes