type_val: handle |= type assignments