Fix wrong value index being used
Correctly generate nested structure/AoS types in GL uniforms