fix SubstitutionTransformation.to_dict