glsl: copy array dimension when cloning