Export a pharmpy model object
export_pharmpy_results.RdCurrently, pharmr/pharmpy is not able to export results objects from grid searches or model fits. This function aims to work around that until it does. It essentially saves the model information separately, and upon reloading it reconstructs the models in the results object.