ir_to_mesa: Fix the swizzles on record and array dereferences.