make sure unprocessed functions get preserved in trial obj

related to issue #42