fix #1096 substitute type args when qualifying type is intersection