[GEN] Add generation of unions