Using [T] instead of Array<T>
Fixing implementation of union operator