Simplify zeroing of unused attributes

Just zero all of them!  The enabled ones will override the defaults.
Fix array handling for glsl

glsl seems to treat array vertex attributes as a set of independent
attribute elements, some of which may be inactive.  This needs special
treatment to ensure only the active elements are set.