Handle arrays in addEvent.