Added a pickle method to write an entire SBOLDocument to a Model.