Made it so that the MATLAB_fields Attribute is properly used on structures to order the fields in the right order.