Fix abi encoder bug for struct values where the members are encoded in the wrong order