Fixed reversal of name and type in activities and outputs when populating summary data.