Add 'records' outtype to to_dict method.