Issue 5498 - array of elements of subtypes of a common supertype

arrayExpressionsToCommonType incorrectly uses condexp.e2->type rather than condexp.type to determine the common type of the array.
Merge pull request #684 from yebblies/issue5498

Issue 5498 - array of elements of subtypes of a common supertype