fix PR7311 by avoiding breaking casts when a bitcast from scalar->vector