Fix wrong array size
Turns out neither getInfo nor pArray.dataSize are reliable. One determines the size based on data type and number of elements, the other defines datasize based on size allocated, but not necessarily occupied.
Since GenericEvent's size is not 24 bytes, it's not multiple of any primitive data type from epics, so we need to pass it as attribute.