fix CastInst::castIsValid to reject aggregate types, fixing PR6153: