The addUniform function only handles types like float, vec2, vec3, vec4, mat4, meaning size=1,2,3,4 or 16. It does not handle struct types.
What you can do is telling addUniform that the element is vec4 (so size=4) and pass in arraySize the total number of vec4 (4 in your case):