more fixes to gl_array helper functions