Use gl attrib index as the index in the array.

We are saving some loops in every call because we do not have to
look for the element.
We do not need to search the attrib for the glGetVertexAttribfv.
We don't need the array_index anymore in the add attrib function.