Union: fixed generation of union subclass when parent type has type params