Updated resolve_dst_type in elwise